/*
 * @(#)AutoTaskCompileException.java
 *
 * Copyright (c) 2006 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.workflow.core;

import com.dcivision.framework.SystemParameterConstant;
import com.dcivision.framework.SystemParameterFactory;

/**
 * <p>Class Name:    AutoTaskCompileException.java    </p>
 * <p> A wrapper to ease the use of com.sun.tools.javac.Main.</p>
 *
 * @author           greatwall.shao
 * @company          DCIVision Limited
 * @creation date    2006-08-23
 */
public class AutoTaskCompileException extends RuntimeException {

  private static final long serialVersionUID = -5232246196378037445L;

public AutoTaskCompileException(String message) {
  super(message);
  
  }

public String toString() {
  String message =super.toString();
  String errorMessage = message.replaceAll(SystemParameterFactory.getSystemParameter(SystemParameterConstant.WORKFLOW_AUTOMATIC_TASK_SRCDIR), "");
  return errorMessage;
}

}
